﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using static CCS_Snake.Contracts;

namespace CCS_Snake
{
    class Parameter
    {
        /// <summary>
        /// 贪吃蛇的移动方向标识
        /// </summary>
        public class MoveDirection
        {
            public const int ToLeft = 0;
            public const int ToRight = 1;
            public const int ToUp = 2;
            public const int ToDown = 3;
        }

        /// <summary>
        /// 游戏状态, 默认为停止
        /// </summary>
        public static string GameState = "Stoped";

        /// <summary>
        /// 贪吃蛇的运动方向, 默认为向右
        /// </summary>
        public static int SnakeDirection = MoveDirection.ToRight;

        /// <summary>
        /// 贪吃蛇的身体
        /// </summary>
        public static List<Point> SnakeBody = new List<Point>() { };

        /// <summary>
        /// 食物坐标
        /// </summary>
        public static Point Food = new Point(-1, -1);

        /// <summary>
        /// 用户短时间操作贪吃蛇的移动方向队列
        /// </summary>
        public static List<int> SnakeDirectionList = new List<int> { };

        /// <summary>
        /// 游戏控制按钮的布局
        /// </summary>
        public static BtnGameControlsLayoutStruct BtnGameControlsLayout = new BtnGameControlsLayoutStruct() { maxWidth = 156, minWidth = 100 };
    }
}
